package com.g.localmsg.starter.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
@TableName("transaction_msg")
public class TransactionMsgDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 事务状态: PENDING-待处理, PROCESSING-处理中, SUCCESS-成功, FAILED-失败, CANCELED-已取消 */
    private String state;
    private LocalDateTime nextRetryTime;
    // 重试次数
    private Integer retryCount;
    private Integer maxRetryCount;
    private Integer retryInterval;
    private String invokeCtx;
    private String failedReason;
    private Boolean deleted;
    private Integer priority;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
